package com.ntschy.taizhou.threaddemo;

import java.util.ArrayList;
import java.util.List;

// 泛型注意事项
public class FanxingTest1 {

    public static void main(String[] args) {
        List<String> strings = new ArrayList<>();
        strings.add("32");
        ArrayList<Integer> strings22 = new ArrayList<>();
        strings22.add(22);
        Class<? extends List> aClass = strings.getClass();
        Class<? extends ArrayList> bClass = strings22.getClass();


        System.out.println(aClass==bClass);
        if (strings instanceof ArrayList){
            System.out.println(22222);

        }

    }

}
